<div class="bjui-pageHeader">
    <div class="pull-right">
        <a href="{:U('Forms/del_comment')}" class="btn btn-default" data-toggle="doajaxchecked" data-icon="remove" data-callback="callbackRefres" data-confirm-msg="要删除全部选中的吗??" data-idname="id" data-group="ids"></a>
        <a href="{:U('Forms/update_comment_status',array('type'=>1))}" class="btn btn-default" data-toggle="doajaxchecked" data-icon="eye-slash" data-callback="callbackRefres" data-confirm-msg="要隐藏全部选中的吗??" data-idname="id" data-group="ids"></a>
        <a href="{:U('Forms/update_comment_status',array('type'=>2))}" class="btn btn-default" data-toggle="doajaxchecked" data-icon="eye" data-callback="callbackRefres" data-confirm-msg="要显示全部选中的吗??" data-idname="id" data-group="ids"></a>
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('comment')}" method="post">
        <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
        <div class="bjui-searchBar">
            <label>用户姓名:</label>
            <input type="text" name="name" value="{:I('name')}" />
            <label>评论内容:</label>
            <input type="text" name="content" value="{:I('content')}"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询 </a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            <th>用户姓名</th>
            <th>评论内容</th>
            <th>上传的图片</th>
            <th>评论商品</th>
            <th>是否显示</th>
            <th>评论时间</th>
            
            <th>回复内容</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
        <tr>
            <th width="26"><input type="checkbox" value="{$vo.id}" class="checkboxCtrl" name="ids" data-toggle="icheck"></th>
            <td>{$vo.mobile}</td>
            <td>{$vo.contents}</td>
            <td><volist name="vo['photo']" id="vv"><img src="{$vv}" width="80px"/></volist></td>
            <td><a href="__APP__/Site/item/goodid/{$vo.goods_id}_{$vo.product_id}" target="_blank" >{$vo.name}</a></td>
            <if condition="$vo.is_check eq '0'">
            <td><a href="{:U('Forms/update_comment_status',array('id'=>$vo['id']))}" data-type="get" data-toggle="doajax" data-confirm-msg="要显示这条评论?">隐藏</a></td>
            <else/>
            <td><a href="{:U('Forms/update_comment_status',array('id'=>$vo['id']))}" data-type="get" data-toggle="doajax" data-confirm-msg="要隐藏这条评论?">显示</a></td>
            </if>
            <td>{$vo.time}</td>
            <!-- <td>{$vo.ip}</td> -->
            <td>{$vo.replay}</td>
            <td>
            <if condition="$vo.replay eq null">
                <button type="button" class="btn-green" onclick="createDialog('{:U("Forms/comment",array("id"=>$vo["id"]))}', '查看评论', 'comment', {width:600, height:500})">回</button>
            <else/>
                <button type="button" class="btn-green" onclick="createDialog('{:U("Forms/comment",array("id"=>$vo["id"]))}', '查看评论', 'comment', {width:600, height:500})">看</button>
            </if>  
                <a href="{:U('Forms/del_comment',array('id'=>$vo['id']))}" data-type="get" class="btn btn-red" data-toggle="doajax" data-confirm-msg="要删除这条评论吗?" >删</a>
            </td>
        </tr>
        </volist>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />